package cn.itsource.pet.service;

import cn.itsource.basic.service.BaseService;
import cn.itsource.basic.utils.AjaxResult;
import cn.itsource.basic.utils.PageResult;
import cn.itsource.pet.domain.SearchMasterMsg;
import cn.itsource.pet.domain.SearchMasterMsgAuditLog;
import cn.itsource.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tom
 * @since 2024-05-19
 */
public interface ISearchMasterMsgService extends BaseService<SearchMasterMsg> {

    AjaxResult publish(SearchMasterMsg searchMasterMsg, HttpServletRequest request);


    PageResult<SearchMasterMsg> finish(SearchMasterMsgQuery query, HttpServletRequest request);

    PageResult<SearchMasterMsg> toAudit(SearchMasterMsgQuery query, HttpServletRequest request);

    PageResult<SearchMasterMsg> toPool(SearchMasterMsgQuery query, HttpServletRequest request);

    PageResult<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, HttpServletRequest request);

    AjaxResult audit(SearchMasterMsgAuditLog log, HttpServletRequest request);

    AjaxResult reject(Long msgId);

    AjaxResult accept(Map<String,String> map);
}
